import request from '@/utils/request';
// 计划新增
export function oldAccountCreate(data) {
  return request({ url: `/old_accounts/`, method: 'post', data })
}
// 日常收支修改
export function oldAccountUpdate(data) {
  return request({ url: `/old_accounts/${data.id}/`, method: 'put', data})
}
// 日常收支记录作废
export function oldAccountsVoid(data) {
  return request({ url: `/old_accounts/${data.id}/void/`, method: 'post', data })
}

// 资金流水
export function financeFlowsList(params) {
  return request({ url: `/finance_flows/`, method: 'get', params })
}
// 资金流水详情
export function financeFlowDetail(params) {
  return request({ url: `/finance_flows/${params.id}/`, method: 'get', params })
}

